package videoExercises;

import java.util.HashMap;
import java.util.Map;
import java.util.function.BiConsumer;

public class Test8 {
    public static void main(String[] args) {
        Map<String, String> m = new HashMap<>();
        m.put("关羽", "尔等都是插标卖首之辈");
        m.put("刘备", "接着奏乐接着舞");
        m.put("姜维", "老将军，可识得天水姜伯约");
        m.put("诸葛亮", "悠悠苍天，何薄于我");

      /*m.forEach((String key,String value)->{
              System.out.println(key+"="+value);
          }
      );
    }*/
        m.forEach(new BiConsumer<String, String>() {
            @Override
            public void accept(String key, String value) {
                System.out.println(key + "=" + value);
            }
        });
    }
}